package com.usabb.pojo.vo;

import lombok.*;

import java.util.ArrayList;
import java.util.List;


@Builder
@Setter
@Getter
@ToString
public class CombosCategoryItem {

    private String itemNo;
    private String itemName;
    private String itemRemark;
    private String itemIntro;





    public static List<CombosCategoryItem> ofItems(List<String> itemNoList, List<String> itemNameList, List<String> itemRemarkList, List<String> itemIntroList) {
        List<CombosCategoryItem> itemList = new ArrayList<>(itemNoList.size());
        for (int j=0; j<itemNoList.size(); j++) {
            CombosCategoryItem item = builder()
                    .itemNo(itemNoList.get(j))
                    .itemName(itemNameList.get(j))
                    .itemRemark(itemRemarkList.get(j))
                    .itemIntro(itemIntroList.get(j))
                    .build();

            itemList.add(item);
        }
        return itemList;
    }
}
